package com.liugl.listtest

import android.content.Intent
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BasicActivity(), View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        sList.setOnClickListener(this)
        cList.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when (v) {
            sList -> {
                val intent = Intent(this, SimpleList::class.java)
                startActivity(intent)
            }
            cList -> {
                val intent = Intent(this, CustomList::class.java)
                startActivity(intent)
            }
        }
    }
}